package com.youth.service.vo;

import com.youth.entity.vo.CountryVO;
import com.youth.result.ResultBean;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @ClassName ICountry
 * @Description: TODO
 * @Author yjwu
 * @Date 2019/10/21 21:38
 **/
public interface ICountryVOService {
    @RequestMapping(value = "/add", method = RequestMethod.POST)
    ResultBean add(@RequestBody CountryVO countryVO);


    @RequestMapping(value = "/deleteById", method = RequestMethod.POST)
    ResultBean deleteById(@RequestParam("id") String id);


    @RequestMapping(value = "/update", method = RequestMethod.POST)
    ResultBean updateById(@RequestBody CountryVO countryVO);


    @RequestMapping(value = "/findById", method = RequestMethod.GET)
    ResultBean findById(@RequestParam("id") String id);

    @RequestMapping(value = "/findAllByStatus", method = RequestMethod.GET)
    ResultBean findAll(@RequestParam("status") Integer status);
}
